package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.EvaluateManagementDTO;
import com.ruoyi.domain.EvaluateManagementQueryDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.EvaluateManagementMapper;
import com.ruoyi.domain.EvaluateManagement;
import com.ruoyi.service.IEvaluateManagementService;

/**
 * 评价管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
@Service
public class EvaluateManagementServiceImpl implements IEvaluateManagementService 
{
    @Autowired
    private EvaluateManagementMapper evaluateManagementMapper;

    /**
     * 查询评价管理
     * 
     * @param id 评价管理主键
     * @return 评价管理
     */
    @Override
    public EvaluateManagement selectEvaluateManagementById(Integer id)
    {
        return evaluateManagementMapper.selectEvaluateManagementById(id);
    }

    /**
     * 查询评价管理列表
     * 
     * @param evaluateManagementQueryDTO 评价管理
     * @return 评价管理
     */
    @Override
    public List<EvaluateManagement> selectEvaluateManagementList(EvaluateManagementQueryDTO evaluateManagementQueryDTO)
    {
        return evaluateManagementMapper.selectEvaluateManagementList(evaluateManagementQueryDTO);
    }

    /**
     * 查询评价管理详情列表
     *
     * @param evaluateManagementQueryDTO 评价管理
     * @return 评价管理
     */
    @Override
    public List<EvaluateManagementDTO> selectEvaluateManagementDetailList(EvaluateManagementQueryDTO evaluateManagementQueryDTO)
    {
        return evaluateManagementMapper.selectEvaluateManagementDetailList(evaluateManagementQueryDTO);
    }
    /**
     * 新增评价管理
     * 
     * @param evaluateManagement 评价管理
     * @return 结果
     */
    @Override
    public int insertEvaluateManagement(EvaluateManagement evaluateManagement)
    {
        return evaluateManagementMapper.insertEvaluateManagement(evaluateManagement);
    }

    /**
     * 修改评价管理
     * 
     * @param evaluateManagement 评价管理
     * @return 结果
     */
    @Override
    public int updateEvaluateManagement(EvaluateManagement evaluateManagement)
    {
        return evaluateManagementMapper.updateEvaluateManagement(evaluateManagement);
    }

    /**
     * 批量删除评价管理
     * 
     * @param ids 需要删除的评价管理主键
     * @return 结果
     */
    @Override
    public int deleteEvaluateManagementByIds(Integer[] ids)
    {
        return evaluateManagementMapper.deleteEvaluateManagementByIds(ids);
    }

    /**
     * 删除评价管理信息
     * 
     * @param id 评价管理主键
     * @return 结果
     */
    @Override
    public int deleteEvaluateManagementById(Integer id)
    {
        return evaluateManagementMapper.deleteEvaluateManagementById(id);
    }

    @Override
    public List<EvaluateManagement> getEvaluateByMerchantId(Integer merchantId)
    {
        return evaluateManagementMapper.getEvaluateByMerchantId(merchantId);
    }
}
